package com.inforich.company.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inforich.common.core.domain.AjaxResult;
import com.inforich.company.domain.TransportCompany;
import java.util.List;
import java.util.Map;

/**
 * 清运公司Service接口
 *
 * @author hjm
 * @date 2022-10-23
 */
public interface ITransportCompanyService extends IService<TransportCompany> {

  /**
   * 分页列表
   */
  Page<TransportCompany> pageTransportCompany(Page<TransportCompany> page, Map<String, Object> map);

  /**
   * 列表
   */
  List<TransportCompany> listTransportCompany(Map<String, Object> map);

  TransportCompany getTransportCompanyById(String id);

  int insertTransportCompany(TransportCompany transportCompany);

  int updateTransportCompany(TransportCompany transportCompany);

  /**
   * 校验数据重复
   */
  String checkData(TransportCompany transportCompany);

  /**
   * 清运公司是否被项目使用
   *
   * @param companyId 公司ID
   */
  Boolean checkBind(String companyId);

  /**
   * 删除清运公司
   */
  AjaxResult removeTransportCompany(String id);

}
